package com.hitqz.robot.api.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author xupkun
 * @date 2025/4/14
 */
@Data
@TableName("dispatch_resource_record")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "调度资源记录表")
public class DispatchResourceRecordEntity extends Model<DispatchResourceRecordEntity> {

    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    @Schema(description="主键id")
    private Integer id;

    private Integer areaId;

    private String occupyRobot;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private String remark;
    // 0-禁用 1-启用 2-空闲 3-已经取消占用
    private int status;


}
